package com.miot.im.message;

public interface NotifyMessageListenerInterface {
	public static final int LOGIN_SUCCESS = 1;
	public static final int LOGIN_FAIL = 2;
	public static final int RECONNECT = 3;
	public static final int ENFORCE_LOGOUT = 4;
	public static final int LOGOUT = 5;

	
	/**
	 * 返回连接结果 1 连接成功,2为连接失败 ,3 为为网络断开开启断线重连
	 * 
	 * @param connectResult
	 */
	public void connectPlatformResult(int connectResult);

	/**
	 * 收到设备来自串口的数据
	 * 
	 * @param puId
	 * @param uartData
	 */
	public void receiveUartData(int puId, String uartData);
	/**
	 * 通知设备上线或者下线信息
	 * 
	 * @param puId
	 * @param state
	 */
	public void notifyPuState(int puId, int state, int sequence);
	public void notifyCu2Cu(int cuId, String data);
	
}
